﻿/************************************************************************************
 * xujiajun@yoozoo.com 御剑
 * 监听地块层级添加和删除的监听器
 ***********************************************************************************/

using Unity.Mathematics;

namespace WorldMapBase.Layer
{
    /// <summary>
    /// 监听地块层级添加和删除的监听器
    /// </summary>
    public interface ITileLayerListener
    {
        /// <summary>
        /// 当添加地块时响应
        /// </summary>
        /// <param name="id">层级ID</param>
        /// <param name="tileIndex">地块序号</param>
        /// <param name="worldPos">地块世界坐标（地块中心的坐标）</param>
        void OnAddTile(int lodLevel, int tileIndex, int2 worldCenterPos);
        
        /// <summary>
        /// 当移除地块时响应
        /// </summary>
        /// <param name="id">地块ID</param>
        /// <param name="tileIndex">地块序号</param>
        void OnRemoveTile(int id, int tileIndex);

        void OnRemoveTiles(int id, int[] tilesIndexs);
    }
}
